<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class Users extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//Create Tabale Users
		Schema::Create('users',function($table) {
			$table->bigIncrements('id');
			$table->string('userName',128);
			$table->string('nickName',256);
			$table->string('firstName',256);
			$table->string('lastName',256);
			$table->date('birthday');
			$table->string('gender',32);
			$table->string('password',256);
			$table->string('email',128)->nullable();
			$table->string('mobile',32)->nullable();
			$table->integer('avatarId')->nullable();
			$table->string('currentCity',256)->nullable();
			$table->integer('hometown')->nullable();
			$table->string('personalMotto',256)->nullable();
			$table->string('introduction',512)->nullable();
			$table->string('achievements',512)->nullable();
			$table->string('occupation',256)->nullable();
			$table->string('skills',512)->nullable();
			$table->integer('workplace')->nullable();
			$table->string('lookingfor',512)->nullable();
			$table->string('relationship',256)->nullable();
			$table->string('otherName',256)->nullable();
			$table->string('food',512)->nullable();
			$table->string('cuisine',512)->nullable();
			$table->string('drink',512)->nullable();
			$table->string('music',512)->nullable();
			$table->string('interests',512)->nullable();
			$table->string('touristPlaces',512)->nullable();
			$table->string('interestedPlace',512)->nullable();
			$table->enum('role', array('default', 'admin', 'owner'));
			$table->string('idFacebook',512)->nullable();
			$table->string('idGoogle',512)->nullable();
			$table->string('idtwitter',512)->nullable();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//drop table
	}

}
